I do this on my MacBookPro. I keep my headphones plugged in. I have the system sound go via the Mac speakers. And I have zoom set to use the headphones.
It’s easy to switch between built in speakers, wired headphones and AirPods. All with unplugging anything.