I made a proposal not the other thread a month or so back that I'd like to present here: we place a 50 cent tax on all items at the grocery store that are unhealthy: anything that contains too much sugar, salt, unhealthy chemicals, unhealthy fats. Same with fast food. Use that money to pay for free health care.
Such a system would develop into a merit based solution: those who make bad lifestyle choices would, in practical terms, end up paying for those choices. Those who live healthier lives would reap the financial benefit of doing so and not be forced to pay for the bad choices of others. And of course, the result would be an overall much more healthy society.
As an alternative, we could tax the companies that produce these products. They in turn would pass the cost on to the consumer so it would achieve the same result, but it would all be more indirect.