I had to have a HomeBridge server already and was running it from a Pi Zero W -- I just decided to bolt it onto the back of the printer and make it pull double-duty as the CUPS box.
A little party trick -- depending on the printer, you might be able to get an "in line" power tap/Y splitter for the power cord to run the Pi and the printer off the same outlet. (My printer takes a normal C14, so I just split and slapped a USB brick on the other end.)
Neat. I am also using a Raspberry Pi to keep my (18 year old) Samsung CLP510N alive, however the Raspberry Pi also runs Pi-Hole (DNS Adblock). I'm curious if i can combine avahi (for air print) and pi-hole?