If you teach your dog that good things happen when she gets poked and prodded, she'll be able to better tolerate potentially uncomfortable interactions with the baby.
Poke your dog gently and then give her a treat.
Gently tug on her ear and then give a treat.
Gently grab her skin or pinch her and then give a treat.