
"ha" can be used in a sarcastic way like this:
A: When did the first war happen?
B: In 1950.
A: Wrong. It happened in 1914.
B: I know that.
A: That's why you answered it correctly, ha?
I thought of "huh" as a synonym to it, but its meaning doesn't indicate that.
I found...