How genetically the sex of a baby is determined

Explain how, genetically, the sex of a baby is determined.  Support your answer with a Punnett Square to show the predicted percentage outcomes for a male and female baby.