It's in Stage 1, Westopolis. In the GameCube version, Sonic says something along the lines of, "To swap your weapon for another that's on the ground, press the X button. Personally, I wouldn't be caught dead using one." That's the moment you're thinking of.