If I moved to Canada and mated with a Canadian woman and the baby was born in Canada, would it have Canadian citizenship due to the mother? Or are there other citizenship rules?

What if both parents are on work visas and say from Germany and the baby is born? Is it Canadian then?