Place it right after the failed attempt or sharp comeback in your edit, then follow it with the sad violin for mock sympathy before cutting to the next scene, or pair it with a wrong answer sting when the mistake is the joke itself.