My cat is peeing on our bed

My cat is peeing on our bed

My cat has been peeing on our bed every so often for the last 2 weeks. Not all the time. Every couple of days. He seems otherwise healthy - running around, purring, and still using the litterbox. He just pees on our bed every so often. We strongly suspect an emotional problem. My cat hasn't been too thrilled since we had our baby, but our child is now 17 months old and this is the first time he's done this. I need a fast solution to this. I am a stay at home mom with a toddler and I haven't the time to try some of the elaborate suggestions I've seen on the internet. The only thing I can think to do is lock him in the bathroom. I've tried rubbing his nose in it (just tonight read that wasn't a good idea but that's what everyone else has told me to do). I've also tried using a spray bottle on him. Any help would be appreciated.