(rankings are just a number next to a name and they can fluctuate)
Also make sure the degree is accredited. For mechanical engineering that accreditation is usually IMechE.
Also consider joining societies and industry internships whilst at university if possible. This will help later on when applying for jobs.