The ghost of pragmatism. Some historical remarks on the debate on the foundations of probability