What does ASSERT_MY_PUZZLE_HASH do?

This question was asked at chia_network.public on Keybase.

It makes sure that the value passed in matches the puzzle hash of the coin being spent.