This expression basically means, "How do you like that?" For example:
I bet you're wrong
I bet I'm right
Aha! Told ya so! Put that in your pipe and smoke it!


People often use this expression to proclaim triumph, and usually it works, as good retorts are rare.