Catalysis of the reaction: S-adenosyl-L-methionine + uridine54 in tRNA = 5-methyluridine54 in tRNA + H+ + S-adenosyl-L-homocysteine.
S-adenosylmethionine-dependent tRNA (m5U54) methyltransferase activity