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