Place it as the final reaction shot after the failed joke or boast has fully played out, with no other effect underneath it. Follow it with the sad violin for a deflated ending, or precede it with Nelson's Ha-Ha! when you want mocking laughter first and this as the closing line.