The CARMENES search for exoplanets around M dwarfs. Two Saturn-mass planets orbiting active stars