Put it at the end of the helpful moment, once the favour or save is fully shown, so it closes the scene rather than interrupting it. Follow it with a DJ Airhorn to turn the thanks into a small celebration, keeping the thank-you first so the celebration follows the favour.