Jahn-Teller coupling in Ca-based layered ruthenates