So are you telling me that my $50 tomato's are too expensive?

You strike me at the heart, friend. LOL
All kidding aside, your question is a good one. I am one of the types that buys the tools and stuff for the garden at first and then uses it for years thereafter, which is how I got the cost of my tomato down to $50 last year. But one thing is for certain. Good tools make the work easier and if you have to work as I do, time is a precious commodity and little is available most days.
Your question really has a much more important answer and many of us here have felt the same question in the past based on the amount of work, cost of materials, cost of our time, cost of seed, etc and the answer still remains PEACE OF MIND. A garden 4x16 properly managed (raised bed type) will feed you for a year. This may sound absurd but it is true. Yes, canning jars, and the like will increase the cost but that is NOT what this is about. Each year you do your own work, the cost goes down. It will never go away, but it can be controlled by good management, a willing and strong spirit and a happy heart.
We, who pursue the SS life till and tend a garden because we aren't sure when that skill will be the most important of all...that day after TSHTF. We all appear to believe that things are not stable in our land and our earth. We believe that taking care of ourselves is the first step in being a contributing member to the society of neighbors around us so that we support each other in bad times. Yes, I know that hasn't happened since 1929 but just like other things, you'd rather be ready and not have to do it, than have to do it and not be ready.
Gardening is a skill; some are better than others at it. but mostly it is a way of life. One writer above mentions wanting to skip the garden each year but then when spring happens, they run outside as fast as they can in order to see that first sprout coming up. Would you be ready to do it if you waited till the day after TSHTF? No, I doubt it. You develop your skills when the going isn't so tough. That way you are ready when the road gets bumpy.
The bottom line though, is that gardening and canning (which go hand in hand) are two skills which provide us with life sustaining food allowing us to support our families and ourselves. We can probably NOT imagine what we will feel on the day after TSHTF but those who have developed the gardening skill will be able to think clearly and plan accordingly. What we worry about is the folks who never did and now think they are "entitled" to what we have worked for while they didn't. Right now, our entire country is about to come un-glued for exactly the same problem; which is the very reason we are working toward SS.
Yes, our garden costs a bit more than we had planned or could afford at times, but then if food became scarce and grocery stores couldn't get supply, gardeners will sit back and smile while they enjoy "the fruits of their labors". Most, if they are like my neighbors will get together and help each other. That will be the day your question is answered unequivocally...
Best
Trim