That was the plot of a Phineas and Ferb episode, even down to the chihuahua.
Ive seen every episode, but I dont remember that one. Have you watched Milo Murphys Law? Theyre having a crossover movie soon.