A statistical mechanics approach to macroscopic limits of car-following traffic dynamics