Phrase said to mock someone who has just failed at a task. Tonal qualities are important if the intended rebuke is to be effective. A downward inflected "on" and upward inflected "ya" are proper use in this instance.
Hey Bob, I hear you got busted shagging you're neighbour's wife. Good on ya!