Wycombe player-manager Gareth Ainsworth led by example as he came off the bench to seal a 2-0 victory at home to Bristol Rovers.