Cristiano Ronaldo bagged a hat-trick as Real Madrid warmed up for their Champions League showdown with Paris Saint-Germain with a big 5-2 victory over Real Sociedad in La Liga.