Place it right after the fail itself, then follow it with the sad violin sound button for an extra layer of mock tragedy, or end the edit there if the reaction shot already sells the joke clearly enough for viewers.