the laugh is on me

the laugh is on me (or you or him, etc.)

the situation is reversed and now the other person is the one who appears ridiculous.
See also: laugh, on