Research suggests that traveling abroad while young and still forming worldviews and spending time speaking with ordinary people at your destination appears to foster Twain’s notion of becoming more open-minded and empathetic towards others without respect to geographic boundaries.
Not all travel meets these conditions, of course.