serves you right!; see what happens!
A set phrase used to express schadenfreude or satisfaction when someone gets their comeuppance. Often said with a tone of contempt or triumph. The ざま is a derogatory term for someone's state or appearance.
See also: ざまみろ
He failed? Serves him right.
He was getting too cocky. It's like, see what happens.
Common kana-kanji mixed spelling; ざま is usually written in kana for this expression.
Kanji spelling is possible but less common; may be confused with other readings of 様.
From ざま (a derogatory term for someone's state or appearance, derived from 様) + を + 見ろ (imperative of 見る). Literally 'look at your state'.