Generalist or Specialist: Who Should You Become?

With the job market growing only more and more competitive by the day, what can put you on top; being a generalist or a specialist?