Place it right after the embarrassing line or failed attempt, as the reaction that closes the scene, then follow it with a short laugh to close the bit. Pairing it with a sarcastic yeah works when the joke was meant to be clever.