Gareth Bale marked his Real Madrid debut with a goal as his new club drew 2-2 away to Villarreal in La Liga.