A Ramsey-type theorem for traceable graphs☆