Its easier on you and the dog if the dog understands basic comments. First never let the dog go into the baby's room or where ever the baby is going to sleep.
Step2
Every day take an item of the baby and let him smell it but don't let him touch it. Also don't let him smell it whenever he wants. It must be when u allow him too. Don't forget who is in control here.
Step3
When the baby arrives if the dog barks correct him right away. Also you must show the dog that he is not allowed to get close to the baby or smell the baby until u tell him to. Between you and the baby the dog should be at least 3 feet away. The dog will learn that it is up to you when he is allowed to be near her. He will find the baby and you to be the leaders in the group.
Tips & Warnings
Takes a lot of work. Don't give up. Correction is necessary every day. But don't forget the most important thing which is love.