Depending on where it is. If it was like a seedling, they'd probably dust whatever could hold fingerprints that the grower would have touched, and left.
If it was a larger plant, they'd probably wait for you to come around and build up evidence against you and you wouldn't know it until you were fucked.

If it was 5+ plants they'd arrest you on the spot.

My advice:
Grow in your neighbors yard somewhere. Trust me, theres some spots around. I successfully grew two three foot tall plants in plain view of more than one house, and just because the people were old, got away with it.